package memorytrace.domaine

class StackCall(x:String,y:String,idx:Int) {
  
  val parent=x
  val pparent=y.replace("\n","");
  val id  =idx
  
  val (parent_exec,parent_func) =(parent.split("#")(0),parent.split("#")(1))
  val (pprent_exec,pparent_func)=(pparent.split("#")(0),pparent.split("#")(1))
  
  override def toString() = {
    
    var v="--event stack "+id+"--"+"\n"
    v+= parent_exec+"/"+parent_func+"\n"
    v+= pprent_exec+"/"+pparent_func+"\n"
    v+="--end stack--"+"\n"
    v
  }
}